package com.securitytrace.service;

import java.util.List;

import com.securitytrace.service.exception.AccountExistException;
import com.securitytrace.service.exception.IncorrectAccountOrPasswordException;

import com.securitytrace.model.User;

public interface UserService {
	
	public void create(User user, long roleId, long addressId) throws AccountExistException;

	public User login(String account, String password) throws IncorrectAccountOrPasswordException;
	
	public long getTotalCount();
	
	public List<User> getListByPage(int start, int pageSize);
	
	public void deleteById(long id);
	
	public void updatePassword(long id, String password);
	
}
